FROM registry.cn-hangzhou.aliyuncs.com/udh/jdk:1.8.141


USER flink

WORKDIR /home/flink/

RUN wget http://10.110.117.99/downloads/flink/flink-1.14.3-bin-scala_2.12.tgz && tar -zxvf flink-1.14.3-bin-scala_2.12.tgz -C /home/flink/ \
    && rm -f flink-1.14.3-bin-scala_2.12.tgz && mv flink-1.14.3  apache-flink  \
  &&   wget http://10.110.117.99/downloads/hadoop/hadoop-3.3.4.tar.gz && tar -zxvf hadoop-3.3.4.tar.gz -C /home/flink/ \
        && rm -f hadoop-3.3.4.tar.gz && mv hadoop-3.3.4  apache-hadoop

ENV FLINK_HOME=/home/flink/apache-flink
ENV HADOOP_HOME=/home/flink/apache-hadoop

ENV PATH=$PATH:$FLINK_HOME/bin:$HADOOP_HOME/bin:$HADOOP_HOME/sbin

# iceberg support
RUN wget http://10.110.117.99/downloads/flink/iceberg-flink-1.14-1.2.1.jar